package com.infore.gateway.main.filter;

import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractNameValueGatewayFilterFactory;
import org.springframework.stereotype.Component;

/**
 * @Discription 认证过滤器
 * @Autor lijh
 * @Date 2021/12/12.
 */
@Component
public class AuthorizeGatewayFilterFactory extends AbstractNameValueGatewayFilterFactory {

    @Override
    public GatewayFilter apply(NameValueConfig config) {
        //TODO 认证过滤器 认证逻辑

        return (exchange, chain) -> chain.filter(exchange);
    }


}
